package fr.thomascoffin.mocaf;

/**
 * This class provides an example of REMAINDER Width/Height usage,
 * using the EasyGBCFullExample system.
 * <p/>
 * This class is released by Thomas Coffin (thomas.coffin@gmail.com) under the <a href="http://www.gnu.org/copyleft/lesser.html" target="_blank">LGPL License</a>
 * as a component of the <a href="http://code.google.com/p/mocaf" target="_blank">mocaf project</a>
 * <p/>
 * (c) Thomas Coffin 2009.
 */
public class EasyGBCRemainderWidthAndHeightExample extends EasyGBCFullExample
{
	protected void fill()
	{
		EasyGBC easyGBC = new EasyGBC().center().fillBoth().insets(0).noPad().normalWeight().size(1);
		add("X2,Y2", easyGBC.x(2).y(2).size(1));
		add("X6,Y3", easyGBC.x(6).y(3).size(1));
		add("X1,Y2,Wremainder", easyGBC.x(1).y(2).remainderWidth());
		add("X6,Y1,Hremainder", easyGBC.x(6).y(1).remainderHeight());
	}

	public static void main(String[] args)
	{
		new EasyGBCRemainderWidthAndHeightExample();
	}
}
